#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:


    MyPushButton(QString normalImg,QString pressImg="");//设置参数1，正常显示图片路径；参数2，按下按钮后切换图片

    QString normalPath;
    QString pressPath;

    //向下跳跃
    void zoom1();
    //向上跳跃
    void zoom2();
    //鼠标按下触发事件
    void mousePressEvent(QMouseEvent *e);
    //鼠标释放事件
    void mouseReleaseEvent(QMouseEvent *e);


signals:

public slots:
};

#endif // MYPUSHBUTTON_H
